package malloc;

public class jianzhi17 {
    public int[] printNumbers(int n) {
        //  TODO:记住下面这个方法
        int number = (int) Math.pow(10, n);
        int[] nums = new int[number-1];
int j=1;
        for (int i =0 ; i <number-1 ; i++) {
            nums[i]=j;
            j++;
            
        }

        return  nums;

    }

    public static void main(String[] args) {

        jianzhi17 jianzhi17 = new jianzhi17();
        int[] ints = jianzhi17.printNumbers(3);
        for (int a :
                ints) {
            System.out.println(a);

        }
    }
}
